package com.cn.main.framework.test;

import com.cn.main.framework.RunFactoryBeanDefinitionRegistry;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Import;

/**
 * @aothor chenyuncong
 * @Date 2022/9/4 上午9:58
 */
@Import({RunFactoryBeanDefinitionRegistry.class})
public class Demo {
    @Test
    public void run() {
        ApplicationContext applicationContext=new AnnotationConfigApplicationContext(Demo.class);
        Bird bird= applicationContext.getBean(Bird.class);
        bird.run();
    }

}
